package com.WaVel.mapper;

import com.Emplyment.dto.CommentDto;
import com.Emplyment.dto.InterViewDto;
import com.Emplyment.entity.Comment;
import com.Emplyment.entity.InterView;
import com.Emplyment.vo.CommentVo;
import com.Emplyment.vo.InterViewVo;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface InterViewMapper {

    List<InterViewVo> getInterviews(String Category);

    List<CommentVo> getComments(List<Integer> interviewIds);


    void insertInterview(InterView interview);

    @Insert("INSERT INTO comment (content, interviewId,author,timestamp,userPic) VALUES (#{newComment}, #{interviewId},#{username},#{timestamp},#{userPic})")
    void insertComment(Comment comment);

}
